import hashlib
from day01.settings import SECRET_KEY


def encrypt_md5(strs):
    md5_obj = hashlib.md5(SECRET_KEY.encode('utf-8'))
    md5_obj.update(strs.encode('utf-8'))
    return md5_obj.hexdigest()
